This notebook checks for the presence of necessary python modules and other dependencies.


In [1]:
import os
import numpy as np
import scipy as sci
import skimage as sk
import matplotlib as mp

print 'Numpy: %s' % np.__version__
print 'Scipy: %s' % sci.__version__
print 'Scikit-Image: %s' % sk.__version__
print 'Matplotlib: %s' % mp.__version__


Numpy: 1.8.0
Scipy: 0.13.3
Scikit-Image: 0.9.3
Matplotlib: 1.3.1

In [5]:
list_to_check = []

# imagemagick
list_to_check.append('/usr/bin/convert')
list_to_check.append('/usr/bin/composite')

# avconv
list_to_check.append('/usr/bin/avconv')

# FIJI
list_to_check.append('/home/vagrant/Fiji.app/fiji-linux64')

# itk-based compiled binaries
list_to_check.append('/vagrant/bin/')

# folders where data may end up
list_to_check.append('/data/reconstruction/')


for l in list_to_check:
    if not os.path.exists(l):
        print 'missing : %s' % l
    else:
        print 'found   : %s' % l


found   : /usr/bin/convert
found   : /usr/bin/composite
found   : /usr/bin/avconv
found   : /home/vagrant/Fiji.app/fiji-linux64
found   : /vagrant/bin/
found   : /data/reconstruction/

In [ ]: